package com.autologistics.dao;

import java.util.List;

import com.autologistics.model.Disparter;
import com.autologistics.model.Machine;

public interface MachineDao {
	/**
	 * @return �ն��б� or null 
	 * @author cl
	 */
	public List<Machine> listAll();
	public List<Machine> listByState(int state);
	/**
	 * @param id
	 * @return ��������
	 */
	public Machine getById(int id);
	/**
	 * @param id
	 * @return ��������
	 */
	public Machine getByAddressId(int id);
	public Machine getByIDAddress(String ip);
	public void updata(Machine machine);
	public void add(Machine machine);
	public List<Machine> queryForOnePage(final int offset, final int length);
	public List<Machine> listNotOffline();
}
